<?php
/**
 * Created by PhpStorm.
 * User: guoya
 * Date: 2017/11/22
 * Time: 9:27
 */
Route::get('/admin/login', 'Admin\HomeController@login');
Route::post('/admin/sign_in', 'Admin\HomeController@sign_in');
Route::get('/admin/logout', 'Admin\HomeController@logout');
Route::group(['namespace' => 'Admin', 'prefix' => 'admin', 'middleware' => 'admin.auth'], function ()
{
    Route::get('/', ['as' => 'admin_home_index', 'uses' => 'HomeController@index']);
    //Route::get('/', 'HomeController@index');
});